package com.kma.ncpractice2013.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import javax.sql.DataSource;
import java.util.Collection;


public abstract class DAO<T>
{


	protected DataSource dataSource = Connector.getDataSource();


	protected JdbcTemplate jdbcTemplate = Connector.getJDBCTemplate();



    public DAO()
    {


    }
    public abstract void create(T o);
    public abstract void update(T o);
    public abstract T getById(int id);
    public abstract Collection<T> getAll();
    public abstract void deleteById(int id);
}
